<!--
  - Global template for your application
  - Don't change anything between marked delimiter |||dtd:tagName|||
  - Beyond you can add additional headers or/and xhtml structure
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" xmlns="http://www.w3.org/1999/xhtml">
	<xsl:output method="xml" omit-xml-declaration="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes" encoding="|||sls:getCharset|||" />

	<!-- Variable Builder -->
	|||sls:buildUrlVars|||
	<!-- /Variable Builder -->

	<!-- Generic include -->
	|||sls:includeActionFileBody|||
	|||sls:includeActionFileHeader|||
	|||sls:includeStaticsFiles|||
	<!-- /Generic include -->

	<xsl:template match="root">
		<html xml:lang="|||sls:getLanguage|||" lang="|||sls:getLanguage|||">
			<head>

				<!-- Generic headers loading -->
				<xsl:call-template name="GenerateMetas" />
				|||sls:loadActionFileHeader|||
				<!-- /Generic headers loading -->

				<script type="text/javascript">
					if (typeof MooTools == "undefined"){
						document.write(unescape("%3Cscript src='<xsl:value-of select="$sls_url_js_core_statics" />SLS_Statics_compressed.js'type='text/javascript'%3E%3C/script%3E"));
					}
					if (typeof slsBuild == "undefined"){
						var slsBuild = {<xsl:for-each select="//Statics/Sls/Configs/*"><xsl:variable name="firstPos" select="position()" /><xsl:variable name="nodeName" select="name()" /><xsl:if test="count(*[@js='true'])!=0">'<xsl:call-template name="protectString"><xsl:with-param name="str" select="$nodeName" /><xsl:with-param name="type">'</xsl:with-param></xsl:call-template>' :{<xsl:variable name="nbItems" select="count(*[@js='true'])" /><xsl:for-each select="*[@js='true']"><xsl:variable name="childName" select="name()" />'<xsl:call-template name="protectString"><xsl:with-param name="str" select="$childName" /><xsl:with-param name="type">'</xsl:with-param></xsl:call-template>':'<xsl:call-template name="protectString"><xsl:with-param name="str" select="." /><xsl:with-param name="type">'</xsl:with-param></xsl:call-template>'<xsl:if test="$nbItems != position()">,</xsl:if></xsl:for-each>},</xsl:if></xsl:for-each>'langs' : {<xsl:for-each select="//Statics/Sls/Langs/js/sentence">'<xsl:call-template name="protectString"><xsl:with-param name="str" select="name" /><xsl:with-param name="type">'</xsl:with-param></xsl:call-template>' : '<xsl:call-template name="protectString"><xsl:with-param name="str" select="value" /><xsl:with-param name="type">'</xsl:with-param></xsl:call-template>'<xsl:if test="position() != count(//Statics/Sls/Langs/js/sentence)">,</xsl:if></xsl:for-each>}};
					}
					if (typeof dp ==  "undefined"){
						document.write(unescape("%3Cscript src='<xsl:value-of select="$sls_url_js_core_statics" />highlight.js'type='text/javascript'%3E%3C/script%3E"));
					}
				</script>

				<link rel="stylesheet" type="text/css" href="{concat($sls_url_css_core,'ssBo.css')}" />
				<script type="text/javascript" src="{concat($sls_url_js_core_dyn, 'Selects.js')}"></script>
				<script type="text/javascript" src="{concat($sls_url_js_core_dyn, 'slsBo.js')}"></script>

			</head>
			<body>

				<div id="bo_wrapper" class="light_override">
					<div id="bo_float_wrapper">
						<div id="content_wrapper">

							<!-- Generic bodies loading -->
							|||sls:loadActionFileBody|||
							|||sls:loadCoreBody|||
							<!-- /Generic bodies loading -->

						</div>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>